package top.kaoshanji.q1ch07a.vo;

import org.springframework.web.multipart.MultipartFile;
import top.kaoshanji.q1ch07a.model.Spitter;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/25 11:34
 */
public class SpitterForm {

    private String username;

    private String password;

    private String firstName;

    private String lastName;

    private String email;

    private MultipartFile profilePicture;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public MultipartFile getProfilePicture() {
        return profilePicture;
    }

    public void setProfilePicture(MultipartFile profilePicture) {
        this.profilePicture = profilePicture;
    }

    public Spitter toSpitter() {
        return new Spitter(username, password, firstName, lastName, email);
    }


}
